import request from "@/utils/request";
/**
 * @description: 获取轮播图
 * @param {*}
 * @return {*}
 */
export const _getBanner = (params = {}) => {
  const { distributionSite = '1' } = params
  return request({
    url: '/home/banner',
    params: {
      distributionSite
    }
  })
}
/**
 * @description: 获取新鲜好物
 * @param {*}
 * @return {*}
 */
export const _getNewList = () => {
  return request({
    url: '/home/new'
  })
}
/**
 * @description: 获取人气推荐
 * @param {*}
 * @return {*}
 */

export const _getHotList = () => {
  return request({
    url: '/home/hot'
  })
}
/**
 * @description: 获取所有商品模块
 * @param {*}
 * @return {*}
 */
export const _getGoodsList = () => {
  return request({
    url: '/home/goods'
  })
}